package com.ruoyi.web.mapper.commons;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.web.entity.commons.ServerFile;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface ServerFileMapper extends BaseMapper<ServerFile> {
    @Insert("INSERT INTO server_file (real_name, server_name, file_path, file_uid) VALUES (#{realName}, #{serverName}, #{filePath}, #{fileUid})")
    int addServerFile(ServerFile serverFile);
    ServerFile getServerFileByUid(String fileId);
}
